package itdfq.dfq.Behavior_Patters.strategy;

/**
 * @Author GocChin
 * @Date 2021/5/24 20:58
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210111  段方钦");
        System.out.println("//兵来了");
        Context ctx = new Context(new StrategyImplA());
        ctx.method();

        System.out.println("//水来了");
        ctx = new Context(new StrategyImplB());
        ctx.method();

        System.out.println("//明天有东风");
        ctx = new Context(new StrategyImplC());
        ctx.method();
    }
}
